<template>
	<view>
		<uni-nav-bar :shadow="false" leftText="返回" left-icon="left" title="聊天详情" :border="false" @clickLeft="back" />
		
		<view class="top_box">
			<view class="topBox_box">
				<view class="handset">
					<view class="handset_le">
						<view class="buddha">
							<image src="@/static/tx.png" mode=""></image>
						</view>
						<view class="textName">
							<view class="textName_top">
								赖致刚
							</view>
							<view class="textName_bot">
								[楼长]
							</view>
						</view>
					</view>
					<view class="handset_ri">
						<uni-icons type="phone" size="36rpx"></uni-icons>
					</view>
				</view>
			</view>
		</view>
		<!-- 开关 -->
		<view class="bot_box">
			<view class="botBox_box">
				<view class="swlit">
					<view class="swlit_le">
						顶置聊天
					</view>
					<view class="swlit_ri uni-padding-wrap uni-common-mt ">
						<switch @change="switch1Change" />
					</view>
				</view>
			</view>
			<view class="botBox_box">
				<view class="swlit">
					<view class="swlit_le">
						消息免打扰
					</view>
					<view class="swlit_ri uni-padding-wrap uni-common-mt ">
						<switch @change="switch1Change" />
					</view>
				</view>
			</view>
			<view class="botBox_box">
				<view class="swlit">
					<view class="swlit_le">
						屏蔽拉黑
					</view>
					<view class="swlit_ri uni-padding-wrap uni-common-mt ">
						<switch  @change="switch1Change" />
					</view>
				</view>
			</view>
		</view>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		 methods: {
		        switch1Change: function (e) {
		            console.log('switch1 发生 change 事件，携带值为', e.detail.value)
		        },
				back(){
					uni.navigateBack({
						delta:1
					})
				}
		    }
	}
</script>

<style lang="less">
	page {
		margin: 0;
		padding: 0;
		background-color: #e8ecef;
	}
	// 联系人
	.top_box {
		width: 100%;
		background-color: #fff;
		padding-left: 22rpx;
		padding-right: 31rpx;
		box-sizing: border-box;

		.topBox_box {
			width: 100%;
			height: 200rpx;
			// background-color: aqua;
			display: flex;
			flex-direction: column;
			justify-content: space-between;

			.handset {
				width: 100%;
				height: 200rpx;
				// background-color: aqua;
				display: flex;
				justify-content: space-between;
				border-bottom: 1rpx #f0f1f4 solid;

				.handset_le {
					// padding-top: 45rpx;
					box-sizing: border-box;
					display: flex;

					.buddha {
						width: 93rpx;
						height: 93rpx;
						// background-color: aqua;
						border-radius: 50%;
						margin-top: 45rpx;
						overflow: hidden;

						image {
							width: 100%;
							height: 100%;
						}
					}

					.textName {
						width: 355rpx;
						height: 75rpx;
						// background-color: aqua;
						margin-top: 51rpx;
						margin-left: 22rpx;
						display: flex;
						flex-direction: column;
						justify-content: space-between;

						.textName_top {
							width: 100%;
							height: 30rpx;
							// background-color: aqua;
							font-size: 30rpx;
							line-height: 30rpx;

						}

						.textName_bot {
							width: 100%;
							height: 30rpx;
							// background-color: aqua;
							font-size: 25rpx;
							line-height: 30rpx;
							color: #6b6b6b;
						}
					}

				}

				.handset_ri {
					line-height: 200rpx;
				}
			}
			
			

		}
	}
	
	// 开关
	.bot_box {
			width: 100%;
			height: 280rpx;
			background-color: #fff;
			padding-left: 30rpx;
			box-sizing: border-box;
			margin-top: 20rpx;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			.botBox_box {
				width: 100%;
				height: 95rpx;
				// background-color: aqua;
				padding-right: 30rpx;
				box-sizing: border-box;
				border-bottom: 1rpx #e0e0e0 solid;
				.swlit{
					width: 100%;
					height: 100%;
					// background-color: aqua;
					display: flex;
					justify-content: space-between;
					.swlit_le{
						font-size: 25rpx;
						line-height: 95rpx;
					}
					.swlit_ri{
						line-height: 95rpx;
					}
				}
			}
		}
</style>